<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>回文串测试</title>
        <script type="text/javascript" src="js/palindrome.js"></script>
        <style type="text/css">
            h1{text-align: center}
            div{text-align: center;margin-top: 10px}
        </style>
    </head>
    <body>
        <h1>回文串测试</h1>
        <div>
            <input id="str" name="str" type="text" size="50" onkeyup="value=value.replace(/[^a-zA-Z]/g,'')">
            <button onclick="checkPalindrome(document.getElementById('str').value,'out')">检测</button>
        </div>
        <div><textarea id="out" cols="60" rows="1" readonly></textarea></div>
    </body>
</html>